package com.ys.dubbo.cloud.redis.version.gateway.v2.service;

import com.alibaba.fastjson.JSONArray;
import com.ys.dubbo.cloud.redis.version.gateway.v2.bean.RouteConfInfo;
import reactor.core.publisher.Mono;

import java.util.List;

/**
 * <p>@description:</p>
 *
 * @author yangshuang
 * @version 1.0
 * @date 2019/7/16 11:23
 */
public interface RouteConfService {


    /**
     * 获取全部全部路由
     * @return
     */
    List<RouteConfInfo> routes();


    /**
     * 更新路由
     * @param routes
     * @return
     */
    Mono<Void> editRoutes(JSONArray routes);


}
